<template>
  <div class="">
    <wx-open-launch-weapp
      style="
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        overflow: hidden;
      "
      v-if="isWx"
      username="gh_a82a71d44837"
      :path="path"
    >
      <div v-is="'script'" type="text/wxtag-template">
        <button style="border: none; background: transparent">&nbsp;</button>
      </div>
    </wx-open-launch-weapp>
    <slot></slot>
  </div>
</template>

<script>
export default {
  props: ['path'],
  inject: ['isWx'],
}
</script>

<style>
</style>